package com.ytjj.qmyx.supplychain.mapper;

import com.ytjj.qmyx.supplychain.common.model.BankerInfoVO;
import com.ytjj.qmyx.supplychain.common.model.request.BankerInfoRequest;
import com.ytjj.qmyx.supplychain.common.model.response.BankerInfoResponse;
import com.ytjj.qmyx.supplychain.common.model.response.BankerInfoResponseRpc;
import com.ytjj.qmyx.supplychain.mapper.entity.YxBankerInfo;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface BankerInfoMapper extends Mapper<YxBankerInfo> {
    int updateById(YxBankerInfo bankerInfo);

    int resetPwd(Integer id);

    List<BankerInfoResponseRpc> selectList(BankerInfoRequest bankerInfoRequest);

    Integer verifySuccess(@Param("id") Integer id, @Param("adminName") String adminName);

    Integer verifyFail(@Param("id") Integer id,
                       @Param("rejectReason") String rejectReason, @Param("adminName") String adminName);

    void updateContractRemark(@Param("bankerId") Integer bankerId, @Param("contractRemark") String contractRemark);

    List<BankerInfoVO> selectByBankerIds(@Param("list") List<Integer> bankerIds);
}
